import { route } from './router'
import { start } from './server'
import * as api from './api/index'

const handle = {}

handle['/static'] = api.staticFile
handle['/api/getArticlesTitle'] = api.getArticlesTitle
handle['/api/setArticle'] = api.setArticle
handle['/api/getNotebookList'] = api.getNotebookList
handle['/api/getArticle'] = api.getArticle
handle['/api/deleteArticle'] = api.deleteArticle

start(route, handle)
